provider "alicloud" {
  region = var.region
}

module "none" {
  source = "../.."
  count  = var.number_of_instances
  # 应用名称
  instance_name = element(distinct(compact(concat([var.instance_name], var.instance_names))), count.index)
  # 可用区域
  availability_zone = var.availability_zone
  # 机器类型
  instance_type = var.instance_type
  # 机器镜像id
  image_id = var.image_id
  # 系统盘容量
  disk_size = var.disk_size
  # ssh链接机器公钥名称
  key_name = var.key_name
  # 资源组id
  resource_group_id = var.resource_group_id
  # tags_owner
  tags_owner = var.tags_owner
}

output "modules" {
  value = module.none
}
